package com.gxc.dao;

import com.gxc.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author GongXincheng
 * @since 2019-08-08 14:43
 */
public interface UserRepository extends JpaRepository<User, Integer>, JpaSpecificationExecutor<User> {

    /**
     * 查询全部学生.
     *
     * @param specification 查询条件
     * @param pageable 分页信息
     * @return 全部学生.
     */
    @Override
    Page<User> findAll(Specification<User> specification, Pageable pageable);

}
